package com.example.productmanagerspringboot.data.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("t_order")
public class Order {
    @TableId(value = "order_id",type = IdType.AUTO)
//    @TableField("order_id")
    private Integer orderId;
    @TableField("merchant_id")
    private Integer merchantId;
    @TableField("customer_id")
    private Integer customerId;
    @TableField("good_id")
    private Integer goodId;
    @TableField("create_date")
    private Date createDate;
    @TableField("completed_date")
    private Date completedDate;
    private double price;
    private String photo;
    private String name;
    @TableField("order_status")
    private Integer orderStatus;
//    private int count;
}
